<?php
namespace plugins\wumei\controller;

use cmf\controller\AdminBaseController;
use app\wumei\model\WumeiCategoryModel;
use think\Db;

/**
 * Class WmCategoryApi
 * @package app\wumei\api
 * 物媒分类接口对接
 */
class ApiIndexController extends AdminBaseController
{
    /**
     * 获取手机端展示的物媒分类
     */

    public function getWmCategory()
    {
        $categories = Db::name('portal_category')->order("list_order ASC")->where(['delete_time'=>0,'wmshow'=>2])->select()->toArray();

        return $this->success($categories);
    }



}